package com.huang.lettersort;

import android.content.Context;

/**
 * Created by huangRZ on 2016/9/15.
 */
public class Utils {
    public static int dip2px(Context ctx, float dip){
        float density = ctx.getResources().getDisplayMetrics().density;
        return (int) (density*dip + 0.5f);
    }
}
